home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TeX 1995 July
/
TeX CD-ROM July 1995 (Disc 1)(Walnut Creek)(1995).ISO
/
tex-k
/
tex-k-archive.past
/
1994.11.gz
/
1994.11
/
000153_edp@it.ntu.edu.au_Tue Nov 29 01:55:17 1994.msg
< prev
next >
Wrap
Internet Message Format
|
1994-11-30
|
4KB
Received: from morinda (morinda.cs.ntu.edu.au) by cs.umb.edu with SMTP id AA09424
(5.65c/IDA-1.4.4 for <tex-k@cs.umb.edu>); Mon, 28 Nov 1994 01:55:28 -0500
Received: (from edp@localhost) by morinda (8.6.8.1/8.6.6) id QAA08915 for tex-k@cs.umb.edu; Mon, 28 Nov 1994 16:25:17 +0930
From: Euan Pryde <edp@it.ntu.edu.au>
Message-Id: <199411280655.QAA08915@morinda>
Subject: nested macros
To: tex-k@cs.umb.edu
Date: Mon, 28 Nov 1994 16:25:17 +0930 (CST)
X-Mailer: ELM [version 2.4 PL23]
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 7bit
Content-Length: 2950
Hello,
We have just recently installed the latest Unix TeX distribition,
now some of our old documents won't compile anymore.
Latex documents with nested macros don't work anymore.
ie.
\caption{A sample table taken from \protect{\cite{lamp:latex}}}
generates the following message:
! Argument of \@caption has an extra }.
<inserted text>
\par
l.2047 ... taken from \protect{\cite{lamp:latex}}}
Needless to say this type of thing has caused a lot of problems for
our postgraduate students trying to produce their theses.
Is this an improvement in latex2e over latex2.09 or a bug?
I have included a more detailed description from one of our users :
>
> In order to produce vector symbols (ie, letters with an
> underline character of tilde) I've been using the following
> macro:
>
> % How to draw vectors: from ``A {\tt plain} \TeX \ Primer''
> % by Malcolm Clark, p358, exercise 23.3.
> % The solution's in the back!
>
> \def\ut#1{\mathchoice
> %displaystyle
> {\vtop{\offinterlineskip\halign{##\crcr
> $\hfil\displaystyle{#1}\hfil$\cr
> \noalign{\vskip1pt}
> $\hfil\displaystyle\char'176\hfil$\cr}}}
> %textstyle
> {\smash
> {\vtop{\offinterlineskip\halign{##\crcr
> $\hfil\textstyle{#1}\hfil$\cr
> \noalign{\vskip1pt}
> $\hfil\textstyle\char'176\hfil$\cr}}}
> {\textstyle\vphantom{#1}}}
> %scriptstyle
> {\vtop{\offinterlineskip\halign{##\crcr
> $\hfil\scriptstyle{#1}\hfil$\cr
> \noalign{\vskip0.7pt}
> $\scriptstyle\hfil\char'176\hfil$\cr}}}
> %scriptscriptstyle
> {\vtop{\offinterlineskip\halign{##\crcr
> $\hfil\scriptscriptstyle{#1}\hfil$\cr
> \noalign{\vskip0.5pt}
> $\scriptscriptstyle\hfil\char'176\hfil$\cr}}}}
>
> This works fine, in general. However, within captions of
> figures & tables, it (sometimes) has to be protected,
> as shown:
>
> .
> .
> .
> \caption{Some $[m;\protect{\ut{s}};c]$-systems.}
> \label{fig:1}
> \end{figure}
>
> Once this was done, vectors gave no problems with \LaTeX 2.09.
> However, running \LaTeX 2e over the identical source file
> gives the error:
>
> ! Illegal parameter number in definition of \@tempa.
> <to be read again>
> \crcr
> l.413 ...n{Some $[m;\protect{\ut{s}};c]$-systems.}
>
> ?
>
> Various modifications were tried -- to no avail.
>
> The kludge adopted to circumvent this problem is to typeset
> the required formula into a box, external to the figure,
> and then to copy the box's contents into the \caption line.
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Euan Pryde /
System Administrator / Well thats what the sign on the
School of Information Technology / door says anyway
Northern Territory University /
edp@it.ntu.edu.au /
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~